package csel.model.skills;

import csel.model.DamageTypes;
import csel.model.entity.Character;
import csel.model.entity.Entity;

public class BindWounds extends NonRangedActiveSkill
{
	private static final long serialVersionUID = 5L;

	public BindWounds(Character owner){
		super(owner);
		setName("bind wounds");
		setDescription("heals some damage - the amount depends on the skill level.");
	}

	@Override
	public void use(Entity e) {
		int effect = (int) (getPointsAllocated() * (Math.random() * 5.0));
		e.damage(DamageTypes.Direct, (-1 * effect));
	}
}
